package common;

public class ExpensiveCompany extends Company {

	/**
     * 
     */
    private static final long serialVersionUID = 2822664757673365073L;

    public ExpensiveCompany(enumCompany name) {
		super(name);
	}

	@Override
	public int getStockValue() {
		if (size < 2) return 0;
		else if (size == 2)	return 400;
		else if (size == 3) return 500;
		else if (size == 4) return 600;
		else if (size == 5) return 700;
		else if (size > 5 && size < 11) return 800;
		else if (size > 10 && size < 21) return 900;
		else if (size > 20 && size < 31) return 1000;
		else if (size > 30 && size < 41) return 1100;
		else return 1200;
	}
	
}
